package com.qf.service;

import com.qf.pojo.DtsBrand;
import com.qf.pojo.DtsGoods;
import com.qf.vo.GoodsAllinone;
import com.qf.vo.GoodsCountVo;

import java.util.List;
import java.util.Map;

/**
 * @author Ypl
 * @version V1.0
 * @Project September-mavens
 * @Package com.qf.service
 * @Description:
 * @Date 2022/10/13 20:15
 */
public interface DtsGoodsService {
    //获取总数
    long getCount();

    Map<String, Object> findByPage(Integer page, Integer limit, String sort, String order, String goodsSn, String name, List<DtsBrand> brands);

    void insert(GoodsAllinone goodsAllinone);

    Map<String, Object> detail(Integer goodsId);

    void update(GoodsAllinone goodsAllinone);

    void delete(DtsGoods dtsGoods);
        //商品统计
    List<GoodsCountVo> findCount();

    DtsGoods findByGoodsId(Long goodsId);
}
